package PolymorphismLearning;

public class Animal {
    private String name;
    private double month;

    public Animal() {
    }

    public Animal(String name, double month) {
        this.name = name;
        this.month = month;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMonth() {
        return month;
    }

    public void setMonth(double month) {
        this.month = month;
    }

    public void eat() {
        System.out.println("动物可以吃东西");
    }

    public void OverrideSleep(){
    }
}
